package com.th.supcom.pds.internal.api;

import java.util.List;
import java.util.Map;

import com.th.supcom.pds.domain.pojo.Office;
import com.th.supcom.pds.domain.pojo.PdsPrescDetailCombine;
import com.th.supcom.pds.domain.vo.PdsSupplyDetailVO;
import com.th.supcom.pds.domain.vo.PdsSupplyVO;
import com.th.supcom.pds.domain.vo.Result;

/**
 * 收方收费服务接口
 */
public interface PdsRecipefeeService
{
    /** 公司版权信息. */
    public static final String copyright = "Copyright 2014, XuNuo Corporation";
    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";
    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";
    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";
    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";

    /**
     * 根据药品的编码和执行科室名称查询库存
     * 
     * @param pdsPrescDetailCombine
     * @return List
     */
    public Integer findDrugStockByExample (PdsPrescDetailCombine pdsPrescDetailCombine);

    /**
     * 查出药房的执行科室
     * 
     * @return add by Zli
     */
   public List <Office> findExecutiveOffice (PdsPrescDetailCombine pdsPrescDetailCombine);

    /**
     * 得到患者信息和主处方信息
     * 
     * @param pdsPrescDetailAndPrescVo
     * @param deptCode
     * @return add by Zli
     */
    public Result findPrescByPrescNoOrCard (Map <String, Object>map);
    
    /**
     * 通过选中的主记录得到处方明细
     * @param prescNo
     * @return
     * add by Zli
     */
    public List <PdsSupplyDetailVO>findPrescDetailByPrescNo(PdsSupplyVO pdsSupplyVo,String currentDispensary);
    /**
     * 处方 持久化
     */
   public Map <String, Object> recipeFee (List <PdsSupplyVO> prescs,List <PdsSupplyDetailVO> prescdetails,Map <String, Object>map);

    public void modifyWindows (List <PdsSupplyVO> pcList, Long window,String currentDispensary);
}
